// Fill out your copyright notice in the Description page of Project Settings.


#include "Nav/WGINavItem.h"
#include "WGIUserWidget.h"
#include "Components/PanelWidget.h"

void UWGI_NavItem::SelectThisChild(bool bCallEventWhenSelected,bool bJoinTheCache)
{
	UPanelWidget* Panel = GetParent();
	if (OwnerWGI)
	{
		OwnerWGI->SelectItemAtNavPanel(Panel, Panel->GetChildIndex(this), bCallEventWhenSelected, bJoinTheCache);
	}
	
}

void UWGI_NavItem::SetOwnerWGI(UWGI_UserWidget* InOwner)
{
	OwnerWGI = InOwner;
}
